﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using Financeiro.Model;

namespace Financeiro
{
    /// <summary>
    /// Summary description for FinlogWS
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    public class FinlogWS : System.Web.Services.WebService
    {
        private string setor = "logistica";
        
        [WebMethod]
        public double geraCota(double valorDoPedido)
        {
            CotaModel cota = new CotaModel(this.setor);
            return cota.calculaValor(valorDoPedido);
        }
    }
}
